package com.dtx.adapter.myself;

import java.io.File;
import java.io.IOException;

public class MyMain {

    public static void main(String[] args) {
        FileIO f = new FileProperties();
        try {
            f.readFromFile("graphdesign"+File.separator+"adapter"+File.separator+"file.txt");
            f.setValue("year","2004");
            f.setValue("month","4");
            f.setValue("day","21");
            f.writeToFile("graphdesign"+File.separator+"adapter"+File.separator+"newfile.txt");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
